# Description: MusicBrainz Sunucusuna Erişimi Sağlayan Kitaplık
# URL: http://musicbrainz.org/doc/libmusicbrainz
# Packager: milisarge
# Depends on: python

name=libmusicbrainz2
version=2.1.5
release=1

source=( ftp://ftp.musicbrainz.org/pub/musicbrainz/historical/libmusicbrainz-$version.tar.gz
	http://www.linuxfromscratch.org/patches/blfs/svn/libmusicbrainz-$version-missing-includes-1.patch )

build() {
cd libmusicbrainz-$version
patch -Np1 -i ../libmusicbrainz-$version-missing-includes-1.patch
./configure --prefix=/usr --disable-static
make
cd python
python setup.py build
cd ..
make DESTDIR=$PKG install
mkdir -p $PKG/usr/share/doc/libmusicbrainz-$version
install -v -m644 -D docs/mb_howto.txt \
$PKG/usr/share/doc/libmusicbrainz-$version/mb_howto.txt
}
